package cn.house.service;

import cn.house.dao.UsersDao;
import cn.house.pojo.Users;

public class UsersService {

    private UsersDao dao=new UsersDao();

    /**
     * 登录
     * @param
     * @return
     */
    public boolean Login(Users users){


        long count=0;

        boolean balg=false;

        try {

            count=dao.Login(users);


        }catch (Exception e){
            e.printStackTrace();
        }


        if (count>0){
            balg=true;
        }


        return balg;

    }

}
